import http from "@/utils/http/hub";

/**
 * 获取首页相关信息
 */
export const getIndexDatas = (
  params,
  config = {
    custom: {
      auth: false,
      loading: false,
    },
  }
) => {
  return http.post({
    url: `/home/index`,
    params,
    config,
  });
};

/**
 * 获取轮播图
 */
export const getCarouselList = (
  params,
  config = {
    custom: {
      auth: false,
      loading: false,
    },
  }
) => {
  return http.post({
    url: `/home/carouselList`,
    params,
    config,
  });
};
